package com.TeacherInfoServer.common.service;

import com.TeacherInfoServer.pojo.DTO.DepartmentDTO;
import com.TeacherInfoServer.pojo.DTO.SearchDTO.DepartmentSearchDTO;
import com.TeacherInfoServer.pojo.entity.Department;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 教研室服务类
 */
public interface DepartmentService extends IService<Department> {
    Map<String, Object> getDepartmentList(Integer pages, Integer size);

    //void addDepartment(Department department);

    List<DepartmentDTO> getDepartmentDTOS();

    Map<String,Object> searchDepartmentList(DepartmentSearchDTO departmentSearchDTO);

    void addDepartment(String name, String leaderName, String directorName);

    //void updateTeacher(Department department);

    void addDepartmentByDTO(DepartmentDTO departmentDTO);


    void updateDepartment(DepartmentDTO departmentDTO);

    boolean deleteDepartment(List<Long> ids);

    Department findDepartmentByName(String name);

    Map<String,Object> getDepartmentNameList(String departmentName);
}
